/*    */ package com.zimbra.cs.service.formatter;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.cs.mailbox.MailItem.Type;
/*    */ import com.zimbra.cs.service.UserServletContext;
/*    */ import com.zimbra.cs.service.UserServletException;
/*    */ import java.io.IOException;
/*    */ import java.util.EnumSet;
/*    */ import java.util.Set;
/*    */ import javax.servlet.ServletException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class FreeBusyFormatter
/*    */   extends Formatter
/*    */ {
/*    */   private static final String ATTR_FREEBUSY = "zimbra_freebusy";
/*    */   
/*    */   public FormatterFactory.FormatType getType()
/*    */   {
/* 37 */     return FormatterFactory.FormatType.FREE_BUSY;
/*    */   }
/*    */   
/*    */   public boolean requiresAuth()
/*    */   {
/* 42 */     return false;
/*    */   }
/*    */   
/*    */   public Set<MailItem.Type> getDefaultSearchTypes()
/*    */   {
/* 47 */     return EnumSet.of(MailItem.Type.APPOINTMENT);
/*    */   }
/*    */   
/*    */   public void formatCallback(UserServletContext context)
/*    */     throws IOException, ServiceException, UserServletException, ServletException
/*    */   {
/* 53 */     context.req.setAttribute("zimbra_freebusy", "true");
/* 54 */     HtmlFormatter.dispatchJspRest(context.getServlet(), context);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/service/formatter/FreeBusyFormatter.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */